<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户信息编辑</title>
    <link rel="stylesheet" href="/stylesheets/style.css">
</head>
<body>
    <%- include('partials/header') %>
    <h1>用户信息编辑</h1>
    <form action="/users/edit/<%= user.id %>" method="POST">
        <label for="username">用户名:</label>
        <input type="text" id="username" name="username" value="<%= user.username %>" required><br><br>

        <label for="email">邮箱:</label>
        <input type="email" id="email" name="email" value="<%= user.email %>" required><br><br>

        <button type="submit">更新用户信息</button>
    </form>
    <a href="/users">返回用户管理</a>
    <%- include('partials/footer') %>
</body>
</html>